package com.beiding.service;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


//从认证中心统一获取
@FeignClient(name = "authorization")
public interface AuthService {

    @GetMapping("/ua/feign/email/get")
    String getEmail(@RequestParam("username") String username);

    @PostMapping("/ua/feign/email/check")
    boolean check(@RequestParam("username") String username,@RequestParam("email") String email);
}
